/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pkg1dam;

/**
 *
 * @author VICENTE
 */
public class Clase2 extends Clase1{

    private int tres;

    public Clase2()
    {
        super();
        tres = 0;
    }

    @Override
    public void mostrar()
    {
        super.mostrar();
        System.out.println("-> " + tres);
    }

    public int getTres()
    {
        return tres;
    }
    public void setTres(int n)
    {
        tres = n;
    }
}
